import React from 'react';
import { Spin } from 'antd';

interface IProps {
  height?: string | number
}
const LoadBox = ({height = '100%'}: IProps) => {
  if(height && typeof height === "number"){
    height = height + 'px'
  }
  return <div style={{
    height,
    width: '100%',
    alignItems: 'center',
    display: 'flex',
    justifyContent: 'center',
  }}>
    <Spin />
  </div>
};
export default LoadBox;
